package com.nl.controller.web.bean;


import com.nl.controller.web.util.SetBeanUtil;

public class SmsBaseStation {
    private String id;  //项目id
    private String name;  //项目名称
    private String regionId;  //区域id
    private String regionName;  //区域名称
    private String stationId;  //基站id
    private String stationName;  //项目名称
    private String cityId;    //城市编号
    private String cityName;  //城市名称
    private String createTime;  //创建时间
    private String modifyTime;  //修改时间
    private String state;
    private String stateName;

    public SmsBaseStation() {
    }

    public SmsBaseStation(String id, String regionId, String regionName , String stationId, String stationName,String cityId) {
        this.id = id;
        this.regionId = regionId;
        this.stationId = stationId;
        this.cityId = cityId;
        this.regionName = regionName;
        this.stationName = stationName;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public String getStateName() {
        return SetBeanUtil.getMgrStatus(this.state);
    }

    public void setStateName(String stateName) {
        this.stateName = stateName;
    }

    public String getCityId() {
        return cityId;
    }

    public void setCityId(String cityId) {
        this.cityId = cityId;
    }

    public void setCityName(String cityName) {
        this.cityName = cityName;
    }

    public String getCityName() {
        return SetBeanUtil.getCityName(this.cityId);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRegionId() {
        return regionId;
    }

    public void setRegionId(String regionId) {
        this.regionId = regionId;
    }

    public String getRegionName() {
        return regionName;
    }

    public void setRegionName(String regionName) {
        this.regionName = regionName;
    }

    public String getStationId() {
        return stationId;
    }

    public void setStationId(String stationId) {
        this.stationId = stationId;
    }

    public String getStationName() {
        return stationName;
    }

    public void setStationName(String stationName) {
        this.stationName = stationName;
    }

    public String getCreateTime() {
         return SetBeanUtil.timeSubString(this.createTime);
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getModifyTime() {
        return SetBeanUtil.timeSubString(this.modifyTime);
    }

    public void setModifyTime(String modifyTime) {
        this.modifyTime = modifyTime;
    }

    @Override
    public String toString() {
        return "SmsBaseStation{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", regionId='" + regionId + '\'' +
                ", regionName='" + regionName + '\'' +
                ", stationId='" + stationId + '\'' +
                ", stationName='" + stationName + '\'' +
                ", cityId='" + cityId + '\'' +
                ", cityName='" + cityName + '\'' +
                ", createTime='" + createTime + '\'' +
                ", modifyTime='" + modifyTime + '\'' +
                ", state='" + state + '\'' +
                ", stateName='" + stateName + '\'' +
                '}';
    }
}
